/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cloudfactory.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author ThinkGem
 * @version 2018-09-09
 */
public class CloudfactoryBuycar extends DataEntity<CloudfactoryBuycar> {
	
	private static final long serialVersionUID = 1L;
	private String factoryId;		// 工厂ID
	private String menuId;		// 菜单ID
	private String functionName;		// 功能名称
	private String isRequired;		// 功能类别 0：基础功能； 1：选配功能
	private String useTimes;		// 使用时长
	private User user;		// 用户ID
	private String orderNo;//订单号
	private String functionId;//功能ID
	
	
	public String getFunctionId() {
		return functionId;
	}

	public void setFunctionId(String functionId) {
		this.functionId = functionId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public CloudfactoryBuycar() {
		super();
	}

	public CloudfactoryBuycar(String id){
		super(id);
	}

	@Length(min=0, max=64, message="工厂ID长度必须介于 0 和 64 之间")
	public String getFactoryId() {
		return factoryId;
	}

	public void setFactoryId(String factoryId) {
		this.factoryId = factoryId;
	}
	
	@Length(min=0, max=64, message="菜单ID长度必须介于 0 和 64 之间")
	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	
	@Length(min=0, max=255, message="功能名称长度必须介于 0 和 255 之间")
	public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
	
	@Length(min=0, max=1, message="功能类别 0：基础功能； 1：选配功能长度必须介于 0 和 1 之间")
	public String getIsRequired() {
		return isRequired;
	}

	public void setIsRequired(String isRequired) {
		this.isRequired = isRequired;
	}
	
	@Length(min=0, max=10, message="使用时长长度必须介于 0 和 10 之间")
	public String getUseTimes() {
		return useTimes;
	}

	public void setUseTimes(String useTimes) {
		this.useTimes = useTimes;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}